﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.So;
using nERP.Model;
using nERP.Model.Bas;

namespace nERP.ViewModel.So.SaleReturnDetailVMs
{
    public partial class SaleReturnDetailTemplateVM : BaseTemplateVM
    {

        [Display(Name = "_Model._SaleReturnDetail._Seq")]
        public ExcelPropety Seq_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.Seq);
        [Display(Name = "_Model._SaleReturnDetail._SaleReturn")]
        public ExcelPropety SaleReturn_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.SaleReturnId);
        [Display(Name = "_Model._SaleReturnDetail._SaleReturnDetailCode")]
        public ExcelPropety SaleReturnDetailCode_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.SaleReturnDetailCode);
        [Display(Name = "_Model._SaleReturnDetail._SaleOutWarehouseDetail")]
        public ExcelPropety SaleOutWarehouseDetail_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.SaleOutWarehouseDetailId);
        [Display(Name = "_Model._SaleReturnDetail._Goods")]
        public ExcelPropety Goods_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.GoodsId);
        [Display(Name = "_Model._SaleReturnDetail._GoodsName")]
        public ExcelPropety GoodsName_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.GoodsName);
        [Display(Name = "_Model._SaleReturnDetail._GoodsSpec")]
        public ExcelPropety GoodsSpec_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.GoodsSpec);
        [Display(Name = "_Model._SaleReturnDetail._GoodsUnit")]
        public ExcelPropety GoodsUnit_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.GoodsUnit);
        [Display(Name = "_Model._SaleReturnDetail._ReturnNumber")]
        public ExcelPropety ReturnNumber_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.ReturnNumber);
        [Display(Name = "_Model._SaleReturnDetail._UnitPrice")]
        public ExcelPropety UnitPrice_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.UnitPrice);
        [Display(Name = "_Model._SaleReturnDetail._DiscountPrice")]
        public ExcelPropety DiscountPrice_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.DiscountPrice);
        [Display(Name = "_Model._SaleReturnDetail._TotalPrice")]
        public ExcelPropety TotalPrice_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.TotalPrice);
        [Display(Name = "_Model._SaleReturnDetail._TaxRate")]
        public ExcelPropety TaxRate_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.TaxRate);
        [Display(Name = "_Model._SaleReturnDetail._TaxUnitPrice")]
        public ExcelPropety TaxUnitPrice_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.TaxUnitPrice);
        [Display(Name = "_Model._SaleReturnDetail._TotalTaxPrice")]
        public ExcelPropety TotalTaxPrice_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.TotalTaxPrice);
        [Display(Name = "_Model._SaleReturnDetail._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.Remark);
        [Display(Name = "_Model._SaleReturnDetail._Sale")]
        public ExcelPropety Sale_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.SaleId);
        [Display(Name = "_Model._SaleReturnDetail._SaleDetail")]
        public ExcelPropety SaleDetail_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.SaleDetailId);
        [Display(Name = "_Model._SaleReturnDetail._TaxPrice")]
        public ExcelPropety TaxPrice_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.TaxPrice);
        [Display(Name = "_Model._SaleReturnDetail._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.Status);
        //[Display(Name = "_Model._SaleReturnDetail._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.CreateTime, true);
        //[Display(Name = "_Model._SaleReturnDetail._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._SaleReturnDetail._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.CreateBy);
        //[Display(Name = "_Model._SaleReturnDetail._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.UpdateBy);
        //[Display(Name = "_Model._SaleReturnDetail._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<SaleReturnDetail>(x => x.TenantCode);

        protected override void InitVM()
        {


        }

    }

    public class SaleReturnDetailImportVM : BaseImportVM<SaleReturnDetailTemplateVM, SaleReturnDetail>
    {
        //import

    }

}